package com.hsjk.szwj.module.train.enums;

import com.hsjk.szwj.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/08/19 01:04
 **/
@Getter
@AllArgsConstructor
public enum QuestionStatusEnum implements IntArrayValuable {
    UP(1, "上架"),
    DOWN(2, "下架");

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(QuestionStatusEnum::getStatus).toArray();

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
